/*
#include <iostream>
using namespace std;

#include <stdio.h>;

#include "Header.h";


typedef struct floatlist
{
	float wert;
	floatlist *zeiger;
	floatlist *next;
	floatlist *prev;
};

floatlist *first = NULL;
floatlist *previous;
floatlist *current;
floatlist *start;
floatlist *longlist;
floatlist *longfirst;

void main()
{
	init();
	//einfuegen(0);
	initExtended(3);
	display();
	//del();
	//display();
}

void init()
{
	for(int i = 0; i < 10; i++)
	{
		if(current == NULL)
		{
			current = new floatlist;
			start = current;
			previous = new floatlist;
		} else {
			current = previous;
			previous = new floatlist;
		}
		
		current -> wert = i;
		current -> next = first;
		first = current;

		if (i < 9) {
			current -> prev = previous;
		} else {
			current -> prev = NULL;
		}
	}
}

void initExtended(int anzahlGewollt) {

	for(int anzahl = 1; anzahl < anzahlGewollt ; anzahl++)
	{
		for(int i = 0; i < 10; i++)
		{
			if(current == NULL)
			{
				current = new floatlist;
				start = current;
				previous = new floatlist;
			} else {
				current = previous;
				previous = new floatlist;
			}
		
			current -> wert = i;
			current -> next = first;
			first = current;

			if (i < 9) {
				current -> prev = previous;
			} else {
				current -> prev = NULL;
			}
		}
			
			longlist = new floatlist;
			longlist -> zeiger = first;
			longlist -> next = longfirst;
			longfirst = longlist;
			current = NULL;
			first = NULL;
	}
}
	

void display()
{
	
	current = first;
	while(current != NULL)
	{
		cout<<current -> wert <<endl;
		current = current -> next;
	}
	
	current = start;
	while(current != NULL)
	{
		cout<<current -> wert <<endl;
		current = current -> prev;
	}
	cout<<"end"<<endl;
	system("Pause");
}

void del() {

	floatlist *current2;

	current = first;
	while(current != NULL)
	{
		current2 = current -> next;
		delete current;
		current = current2;
	}
}

void einfuegen(int position) {

	floatlist *current2;
	int i = 0;

	current = first;
	while(current != NULL)
	{
		
		if (i == position) {
			current2 = new floatlist;
			current2 -> wert = 100;
			current2 -> next = current -> next;
			current2 -> prev = current;
			current -> next = current2;

			current = current2 -> next;
			current -> prev = current2; 
		}
		i++;
		current = current -> next;
	}
}*/